/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Modellayer;
import java.util.ArrayList;
import java.io.*;

/**
 *
 * @author Engel
 */
public class CustomerCollection implements Serializable
{

	private ArrayList<Customer> customerList;
	private static CustomerCollection instance = new CustomerCollection();

	public CustomerCollection()
	{
		customerList = new ArrayList<Customer>();
	}

	public static CustomerCollection getInstance()
	{
		return instance;
	}

	public void addCustomer(Customer customer)
	{
		customerList.add(customer);
	}

	public int getSize()
	{
		return customerList.size();
	}

	public void removeCustomer(Customer customer)
	{
		customerList.remove(customer);
	}

	public Customer getCustomer(int number)
	{
		return customerList.get(number);
	}
}
